/*
 * zx_fft.h
 *
 *  Created on: 2013-8-5
 *      Author: monkeyzx
 */

#ifndef _ZX_FFT_H
#define _ZX_FFT_H

//#include "../Headers/Global.h"
#include <math.h>
#include <stdlib.h>
#include <stdio.h>

#ifndef PI
#define PI             (3.14159265)
#endif

typedef struct {
    float real;
    float imag;
} COMPLEX;

typedef COMPLEX TYPE_FFT;  /* Define COMPLEX in Config.h */

extern int fft(TYPE_FFT *, int );
extern int ifft(TYPE_FFT *, int );
extern int zeropadding(float *,int,TYPE_FFT *,int);

void SPL(int n, int *x, int *y, int ni, float *xi, float *yi);
int peaknum_spline(float *data,int len);

#endif /* ZX_FFT_H_ */
